import request from '@/utils/request'

// 查询成员任命信息列表
export function listMember(query) {
  return request({
    url: '/committee/member/list',
    method: 'get',
    params: query
  })
}

// 查询成员任命信息详细
export function getMember(orgMemberId) {
  return request({
    url: '/committee/member/' + orgMemberId,
    method: 'get'
  })
}

// 新增成员任命信息
export function addMember(data) {
  return request({
    url: '/committee/member',
    method: 'post',
    data: data
  })
}

// 修改成员任命信息
export function updateMember(data) {
  return request({
    url: '/committee/member',
    method: 'put',
    data: data
  })
}

// 删除成员任命信息
export function delMember(orgMemberId) {
  return request({
    url: '/committee/member/' + orgMemberId,
    method: 'delete'
  })
}

// 填写工作总结
export function summary(data) {
  return request({
    url: '/committee/member/summary',
    method: 'post',
    data: data
  })
}
